package com.wanmait.baohan.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class TravelApplication implements Serializable {
    private Integer id;
    private Date addTime;
    private Supplier supplier;
    private Staff staff;
    private Integer travelNumber;
    private List<TravelPeople> travelPeoples;
    private List<TravelLog> travelLogs;
    private String purpose;
    @DateTimeFormat
    private Date planTravelDate;
    private Date planEndDate;
    private Integer planDays;
    private String numbering;
    private String planMoney;
    private String planTravel;
    private String content;
    private Integer processNumber;
    private ProcessNode processNode;
    private Integer state;
    private Integer numberModifications;
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<TravelLog> getTravelLogs() {
        return travelLogs;
    }

    public void setTravelLogs(List<TravelLog> travelLogs) {
        this.travelLogs = travelLogs;
    }

    public Date getPlanEndDate() {
        return planEndDate;
    }

    public void setPlanEndDate(Date planEndDate) {
        this.planEndDate = planEndDate;
    }

    public Integer getNumberModifications() {
        return numberModifications;
    }

    public void setNumberModifications(Integer numberModifications) {
        this.numberModifications = numberModifications;
    }

    private Date updateTime;

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    private static final long serialVersionUID = 1L;

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getNumbering() {
        return numbering;
    }

    public void setNumbering(String numbering) {
        this.numbering = numbering;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public Integer getTravelNumber() {
        return travelNumber;
    }

    public void setTravelNumber(Integer travelNumber) {
        this.travelNumber = travelNumber;
    }

    public List<TravelPeople> getTravelPeoples() {
        return travelPeoples;
    }

    public void setTravelPeoples(List<TravelPeople> travelPeoples) {
        this.travelPeoples = travelPeoples;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public Date getPlanTravelDate() {
        return planTravelDate;
    }

    public void setPlanTravelDate(Date planTravelDate) {
        this.planTravelDate = planTravelDate;
    }

    public Integer getPlanDays() {
        return planDays;
    }

    public void setPlanDays(Integer planDays) {
        this.planDays = planDays;
    }

    public String getPlanMoney() {
        return planMoney;
    }

    public void setPlanMoney(String planMoney) {
        this.planMoney = planMoney;
    }

    public String getPlanTravel() {
        return planTravel;
    }

    public void setPlanTravel(String planTravel) {
        this.planTravel = planTravel;
    }

    public String getContent() {
        return content;
    }

    public ProcessNode getProcessNode() {
        return processNode;
    }

    public void setProcessNode(ProcessNode processNode) {
        this.processNode = processNode;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getProcessNumber() {
        return processNumber;
    }

    public void setProcessNumber(Integer processNumber) {
        this.processNumber = processNumber;
    }


    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TravelApplication{" +
                "id=" + id +
                ", supplier=" + supplier.toString() +
                ", staff=" + staff.toString() +
                ", travelNumber=" + travelNumber +
                ", travelPeoples=" + travelPeoples  +
                ", purpose='" + purpose + '\'' +
                ", planTravelDate=" + planTravelDate +
                ", planDays=" + planDays +
                ", planMoney='" + planMoney + '\'' +
                ", planTravel='" + planTravel + '\'' +
                ", content='" + content + '\'' +
                ", processNumber=" + processNumber +
                ", node=" + processNode.toString() +
                ", state=" + state +
                '}';
    }

}